# -*- coding:utf-8 -*-
import sys
try:
    import wx
    wx_installed = True
except ImportError:
    import core.console
    wx_installed = False
    core.console.ColoredConsole.print("未安装“视图版Python”或“wxPython模块”！",
                                      fg=core.console.ColoredConsole.Color.Red)
    core.console.exit_console_script()
from widgets.custom_panel import PnlCustom
from widgets.logger_frame import FrmWithLogger


if __name__ == "__main__":
    app = wx.App()
    frm = FrmWithLogger(title="游戏操作模拟")
    pnl = PnlCustom(frm)
    frm.set_panel(pnl)
    frm.Show()
    app.MainLoop()
